package entity;

import com.alibaba.fastjson.annotation.JSONType;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigInteger;

/**
 * @program: personnel_management_system
 * @description: 员工表
 * @author: Mr.Sun
 * @create: 2020-05-23 22:36
 **/
@Setter
@Getter
@ToString
//JSON化时按照设置的规则排序
@JSONType(orders={"id","id_card","name","gender","residence","degree","dept","age","authorized"})
public class Employee {
    private Integer id;
    private Long id_card;
    private String name;
    private String gender;
    private String residence;
    private String degree;
    private String dept;
    private Integer age;
    private String authorized;
//    private Integer work_time;
    private String marriage;

    public Employee() {
    }



    public Employee(Integer id, Long id_card, String name, String gender, String residence, String degree, String dept , Integer age, String authorized) {
        this.id = id;
        this.id_card = id_card;
        this.name = name;
        this.gender = gender;
        this.residence = residence;
        this.degree = degree;
        this.dept = dept;
        this.age = age;
        this.authorized = authorized;
    }

//    public Employee(Integer id, Long id_card, String name, String gender, String residence, String degree, String dept, Integer age, String authorized, Integer work_time) {
//        this.id = id;
//        this.id_card = id_card;
//        this.name = name;
//        this.gender = gender;
//        this.residence = residence;
//        this.degree = degree;
//        this.dept = dept;
//        this.age = age;
//        this.authorized = authorized;
//        this.work_time = work_time;
//    }
}
